<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


//后台
Route::get('/admin/index','Admin\IndexController@index');
Route::get('/admin/user/add','Admin\UserController@add');
Route::post('/admin/user/insert','Admin\UserController@insert');
Route::get('/admin/user/index','Admin\UserController@index');
Route::post('/admin/user/changename','Admin\UserController@changename');
Route::get('/admin/user/edit/{id}','Admin\UserController@edit');
Route::get('/admin/user/delete/{id}','Admin\UserController@delete');
Route::post('/admin/user/update/{id}','Admin\UserController@update');

//注册
Route::match(['get','post'],'/admin/register','Admin\RegisterController@register');

//登录
Route::get('/admin/login','Admin\RegisterController@login');

//手机报价
Route::get('/products',function(){
	return view('home.products');
});


//colorOS页面
Route::get('/coloros','Stage\OppoController@coloros');

//主页
Route::get('/homepage','Stage\OppoController@homepage');

//登录页面
Route::get('/login','Stage\OppoController@login');

//注册页面
Route::get('/sign','Stage\OppoController@sign');

//r9s页面
Route::get('/r9s','Stage\OppoController@r9s');

//服务页面
Route::get('/service','Stage\OppoController@service');

//社区页面
Route::get('/community','Stage\OppoController@community');

//商城页面
Route::get('/index','Stage\OppoController@index');

//产品页面
Route::get('/products','Stage\OppoController@products');

//体验店
Route::get('/shops','Stage\OppoController@shops');

//双12
Route::get('/two','Stage\OppoController@two');
